using Game.ZuanJiModule;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace Game.RemindModule
{

    public class RemindModule : ModuleBase
    {
        public override void Init()
        {
            RemindManager.Init();
        }

        public override void OnLocalMsg(LocalMessageEnum msg, params object[] args)
        {
            switch (msg)
            {
                case LocalMessageEnum.ItemModule_ItemRefresh:
                    {
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_ZuanJiView_ZuanTou);
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_ZuanJiView_Zuanshen);
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_ZuanJiView_TuiJinQi);
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_CharacterView);
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_WeaponryView);
                        RemindManager.RefreshNode(TreeDefine.ZuanJiEntrance_PendantView);

                        RemindManager.RefreshNode(TreeDefine.FangZhouEntrance_FangZhouRemainsView);

                        RemindManager.RefreshNode(TreeDefine.PlanetEntrance);
                    }
                    break;
                case LocalMessageEnum.UserModule_RolePropertyChange:
                    {
                        RemindManager.RefreshNode(TreeDefine.FangZhouEntrance_FangZhouTalentView);
                    }
                    break;
                case LocalMessageEnum.UserModule_RoleMoneyChange:
                    {
                        UIManager.Instance.GetActivedWindow<ZuanJiBgView>()?.Refresh();
                    }
                    break;
                case LocalMessageEnum.LevelModule_CopyStatueChange:
                    {
                        RemindManager.RefreshNode(TreeDefine.SetEntrance_ChangeUseName);
                    }
                    break;
                case LocalMessageEnum.CounterModule_CounTerChange:
                    {
                        RemindManager.RefreshNode(TreeDefine.ShopEntrance_ShopGiftBagView);
                    }
                    break;
                case LocalMessageEnum.MailModule_DataUpdate:
                    {
                        RemindManager.RefreshNode(TreeDefine.MailEntranceEntrance);
                    }
                    break;
            }
        }

        public override void OnMessage(int msg, string json)
        {

        }
    }

}